.class public Lrexsee/core/browser/clazz/BrowserChromeClient;
.super Landroid/webkit/WebChromeClient;
.source "BrowserChromeClient.java"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mContext:Landroid/content/Context;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 22
    invoke-direct {p0}, Landroid/webkit/WebChromeClient;-><init>()V

    .line 23
    iput-object p1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    .line 24
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mContext:Landroid/content/Context;

    .line 25
    return-void
.end method

.method static synthetic access$0(Lrexsee/core/browser/clazz/BrowserChromeClient;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 20
    iget-object v0, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method


# virtual methods
.method public onCloseWindow(Landroid/webkit/WebView;)V
    .locals 3
    .param p1, "window"    # Landroid/webkit/WebView;

    .prologue
    .line 136
    :try_start_0
    iget-object v1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->windowListener:Lrexsee/core/browser/clazz/WindowCreateCloseListener;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->windowListener:Lrexsee/core/browser/clazz/WindowCreateCloseListener;

    check-cast p1, Lrexsee/core/browser/Browser;

    .end local p1    # "window":Landroid/webkit/WebView;
    invoke-virtual {v1, p1}, Lrexsee/core/browser/clazz/WindowCreateCloseListener;->closeWindow(Lrexsee/core/browser/Browser;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 140
    :cond_0
    :goto_0
    return-void

    .line 137
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 138
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    const-string v2, "onCloseWindow"

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method

.method public onConsoleMessage(Ljava/lang/String;ILjava/lang/String;)V
    .locals 6
    .param p1, "message"    # Ljava/lang/String;
    .param p2, "lineNumber"    # I
    .param p3, "sourceID"    # Ljava/lang/String;

    .prologue
    const/4 v5, 0x1

    const-string v3, "rexsee"

    .line 42
    const-string v0, "Not allowed to load local resource: "

    .line 43
    .local v0, "fileError":Ljava/lang/String;
    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 44
    iget-object v1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->function:Lrexsee/core/browser/RexseeBrowser;

    const-string v2, ""

    invoke-virtual {p1, v0, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lrexsee/core/browser/RexseeBrowser;->load(Ljava/lang/String;)V

    .line 54
    :cond_0
    :goto_0
    return-void

    .line 46
    :cond_1
    iget-object v1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-boolean v1, v1, Lrexsee/core/browser/Browser;->allowErrorDialog:Z

    if-eqz v1, :cond_0

    .line 47
    iget-object v1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    const-string v2, "rexsee"

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 48
    const-string v1, "rexsee"

    iget-object v1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-virtual {p1, v3, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    .line 49
    const-string v1, "Rexsee"

    new-instance v2, Ljava/lang/StringBuilder;

    iget-object v3, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v3, v3, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v3, v3, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    const/4 v4, 0x0

    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v3, v3, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v3, v3, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-virtual {v3, v5}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    .line 51
    :cond_2
    iget-object v1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    const-string v2, "Javascript"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "<br>Line: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "<br>URL: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lrexsee/core/application/RexseeApplication;->alert(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0
.end method

.method public onCreateWindow(Landroid/webkit/WebView;ZZLandroid/os/Message;)Z
    .locals 7
    .param p1, "view"    # Landroid/webkit/WebView;
    .param p2, "isDialog"    # Z
    .param p3, "isUserGesture"    # Z
    .param p4, "resultMsg"    # Landroid/os/Message;

    .prologue
    const/4 v6, 0x0

    .line 144
    :try_start_0
    iget-object v3, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->windowListener:Lrexsee/core/browser/clazz/WindowCreateCloseListener;

    if-eqz v3, :cond_1

    .line 145
    iget-object v3, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->windowListener:Lrexsee/core/browser/clazz/WindowCreateCloseListener;

    iget-object v4, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    const/4 v5, 0x0

    invoke-virtual {v3, v4, p2, p3, v5}, Lrexsee/core/browser/clazz/WindowCreateCloseListener;->getNewBrowser(Lrexsee/core/browser/Browser;ZZZ)Lrexsee/core/browser/Browser;

    move-result-object v1

    .line 146
    .local v1, "newBrowser":Lrexsee/core/browser/Browser;
    if-eqz v1, :cond_0

    .line 147
    iget-object v2, p4, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v2, Landroid/webkit/WebView$WebViewTransport;

    .line 148
    .local v2, "transport":Landroid/webkit/WebView$WebViewTransport;
    invoke-virtual {v2, v1}, Landroid/webkit/WebView$WebViewTransport;->setWebView(Landroid/webkit/WebView;)V

    .line 149
    invoke-virtual {p4}, Landroid/os/Message;->sendToTarget()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 150
    const/4 v3, 0x1

    .line 159
    .end local v1    # "newBrowser":Lrexsee/core/browser/Browser;
    .end local v2    # "transport":Landroid/webkit/WebView$WebViewTransport;
    :goto_0
    return v3

    .restart local v1    # "newBrowser":Lrexsee/core/browser/Browser;
    :cond_0
    move v3, v6

    .line 152
    goto :goto_0

    .end local v1    # "newBrowser":Lrexsee/core/browser/Browser;
    :cond_1
    move v3, v6

    .line 155
    goto :goto_0

    .line 157
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 158
    .local v0, "e":Ljava/lang/Exception;
    iget-object v3, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    const-string v4, "onCreateWindow"

    invoke-virtual {v3, v4, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    move v3, v6

    .line 159
    goto :goto_0
.end method

.method public onExceededDatabaseQuota(Ljava/lang/String;Ljava/lang/String;JJJLandroid/webkit/WebStorage$QuotaUpdater;)V
    .locals 2
    .param p1, "url"    # Ljava/lang/String;
    .param p2, "databaseIdentifier"    # Ljava/lang/String;
    .param p3, "currentQuota"    # J
    .param p5, "estimatedSize"    # J
    .param p7, "totalUsedQuota"    # J
    .param p9, "quotaUpdater"    # Landroid/webkit/WebStorage$QuotaUpdater;

    .prologue
    .line 126
    const-wide/32 v0, 0xa00000

    invoke-interface {p9, v0, v1}, Landroid/webkit/WebStorage$QuotaUpdater;->updateQuota(J)V

    .line 127
    return-void
.end method

.method public onJsAlert(Landroid/webkit/WebView;Ljava/lang/String;Ljava/lang/String;Landroid/webkit/JsResult;)Z
    .locals 4
    .param p1, "view"    # Landroid/webkit/WebView;
    .param p2, "url"    # Ljava/lang/String;
    .param p3, "message"    # Ljava/lang/String;
    .param p4, "result"    # Landroid/webkit/JsResult;

    .prologue
    .line 57
    new-instance v1, Landroid/app/AlertDialog$Builder;

    iget-object v2, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mContext:Landroid/content/Context;

    invoke-direct {v1, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 58
    .local v0, "dialog":Landroid/app/AlertDialog;
    iget-object v1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->icon:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setIcon(Landroid/graphics/drawable/Drawable;)V

    .line 59
    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->TITLE_ALERT:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setTitle(Ljava/lang/CharSequence;)V

    .line 60
    invoke-virtual {v0, p3}, Landroid/app/AlertDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 61
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setCancelable(Z)V

    .line 62
    new-instance v1, Lrexsee/core/browser/clazz/BrowserChromeClient$1;

    invoke-direct {v1, p0}, Lrexsee/core/browser/clazz/BrowserChromeClient$1;-><init>(Lrexsee/core/browser/clazz/BrowserChromeClient;)V

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V

    .line 69
    const/4 v1, -0x1

    iget-object v2, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x104000a

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lrexsee/core/browser/clazz/BrowserChromeClient$2;

    invoke-direct {v3, p0, p4}, Lrexsee/core/browser/clazz/BrowserChromeClient$2;-><init>(Lrexsee/core/browser/clazz/BrowserChromeClient;Landroid/webkit/JsResult;)V

    invoke-virtual {v0, v1, v2, v3}, Landroid/app/AlertDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 76
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 77
    const/4 v1, 0x1

    return v1
.end method

.method public onJsConfirm(Landroid/webkit/WebView;Ljava/lang/String;Ljava/lang/String;Landroid/webkit/JsResult;)Z
    .locals 5
    .param p1, "view"    # Landroid/webkit/WebView;
    .param p2, "url"    # Ljava/lang/String;
    .param p3, "message"    # Ljava/lang/String;
    .param p4, "result"    # Landroid/webkit/JsResult;

    .prologue
    .line 81
    new-instance v2, Landroid/app/AlertDialog$Builder;

    iget-object v3, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mContext:Landroid/content/Context;

    invoke-direct {v2, v3}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v2}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 82
    .local v0, "dialog":Landroid/app/AlertDialog;
    iget-object v2, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v2, v2, Lrexsee/core/application/RexseeApplication;->icon:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog;->setIcon(Landroid/graphics/drawable/Drawable;)V

    .line 83
    sget-object v2, Lrexsee/core/lang/RexseeLanguage;->TITLE_CONFIRM:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog;->setTitle(Ljava/lang/CharSequence;)V

    .line 84
    invoke-virtual {v0, p3}, Landroid/app/AlertDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 85
    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog;->setCancelable(Z)V

    .line 86
    new-instance v2, Lrexsee/core/browser/clazz/BrowserChromeClient$3;

    invoke-direct {v2, p0}, Lrexsee/core/browser/clazz/BrowserChromeClient$3;-><init>(Lrexsee/core/browser/clazz/BrowserChromeClient;)V

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V

    .line 94
    new-instance v1, Lrexsee/core/browser/clazz/BrowserChromeClient$4;

    invoke-direct {v1, p0, p4}, Lrexsee/core/browser/clazz/BrowserChromeClient$4;-><init>(Lrexsee/core/browser/clazz/BrowserChromeClient;Landroid/webkit/JsResult;)V

    .line 108
    .local v1, "listener":Landroid/content/DialogInterface$OnClickListener;
    const/4 v2, -0x1

    iget-object v3, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mContext:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x104000a

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3, v1}, Landroid/app/AlertDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 109
    const/4 v2, -0x2

    iget-object v3, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mContext:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const/high16 v4, 0x1040000

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3, v1}, Landroid/app/AlertDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 110
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 111
    const/4 v2, 0x1

    return v2
.end method

.method public onJsPrompt(Landroid/webkit/WebView;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/webkit/JsPromptResult;)Z
    .locals 2
    .param p1, "view"    # Landroid/webkit/WebView;
    .param p2, "url"    # Ljava/lang/String;
    .param p3, "message"    # Ljava/lang/String;
    .param p4, "defaultValue"    # Ljava/lang/String;
    .param p5, "result"    # Landroid/webkit/JsPromptResult;

    .prologue
    .line 115
    iget-object v0, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->promptListeners:Lrexsee/core/browser/RexseePrompt;

    new-instance v1, Lrexsee/core/browser/clazz/BrowserChromeClient$5;

    invoke-direct {v1, p0, p5}, Lrexsee/core/browser/clazz/BrowserChromeClient$5;-><init>(Lrexsee/core/browser/clazz/BrowserChromeClient;Landroid/webkit/JsPromptResult;)V

    invoke-virtual {v0, p3, p4, v1}, Lrexsee/core/browser/RexseePrompt;->run(Ljava/lang/String;Ljava/lang/String;Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;)V

    .line 122
    const/4 v0, 0x1

    return v0
.end method

.method public onJsTimeout()Z
    .locals 3

    .prologue
    .line 37
    iget-object v0, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    const-string v1, "Javascript"

    const-string v2, "Timeout."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/application/RexseeApplication;->alert(Ljava/lang/String;Ljava/lang/String;)V

    .line 38
    const/4 v0, 0x1

    return v0
.end method

.method public onProgressChanged(Landroid/webkit/WebView;I)V
    .locals 2
    .param p1, "view"    # Landroid/webkit/WebView;
    .param p2, "newProgress"    # I

    .prologue
    .line 33
    iget-object v0, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->progressListeners:Lrexsee/core/browser/clazz/LoadingProgressListeners;

    iget-object v1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mContext:Landroid/content/Context;

    check-cast p1, Lrexsee/core/browser/Browser;

    .end local p1    # "view":Landroid/webkit/WebView;
    invoke-virtual {v0, v1, p1, p2}, Lrexsee/core/browser/clazz/LoadingProgressListeners;->run(Landroid/content/Context;Lrexsee/core/browser/Browser;I)V

    .line 34
    return-void
.end method

.method public onReachedMaxAppCacheSize(JJLandroid/webkit/WebStorage$QuotaUpdater;)V
    .locals 3
    .param p1, "spaceNeeded"    # J
    .param p3, "totalUsedQuota"    # J
    .param p5, "quotaUpdater"    # Landroid/webkit/WebStorage$QuotaUpdater;

    .prologue
    .line 130
    iget-object v0, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mContext:Landroid/content/Context;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "ReachedMaxAppCacheSize:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p3, p4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 131
    const-wide/16 v0, 0x2

    mul-long/2addr v0, p1

    invoke-interface {p5, v0, v1}, Landroid/webkit/WebStorage$QuotaUpdater;->updateQuota(J)V

    .line 132
    return-void
.end method

.method public onReceivedTitle(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 2
    .param p1, "view"    # Landroid/webkit/WebView;
    .param p2, "title"    # Ljava/lang/String;

    .prologue
    .line 28
    iget-object v0, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->history:Lrexsee/core/browser/clazz/History;

    invoke-virtual {v0, p2}, Lrexsee/core/browser/clazz/History;->setCurrentTitle(Ljava/lang/String;)V

    .line 29
    iget-object v0, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->titleListeners:Lrexsee/core/browser/clazz/ReceivedTitleListeners;

    iget-object v1, p0, Lrexsee/core/browser/clazz/BrowserChromeClient;->mContext:Landroid/content/Context;

    check-cast p1, Lrexsee/core/browser/Browser;

    .end local p1    # "view":Landroid/webkit/WebView;
    invoke-virtual {v0, v1, p1, p2}, Lrexsee/core/browser/clazz/ReceivedTitleListeners;->run(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)V

    .line 30
    return-void
.end method
